package com.hinotoyk.testsystem.entity;

public class EssayQuestion {
    private Integer essayQuestionId;

    private String essayQuestion;

    private String answer;

    private Integer score;

    private Integer teacherId;

    private Integer difficult;

    public EssayQuestion() {
    }

    public EssayQuestion(String essayQuestion, String answer, Integer score, Integer teacherId, Integer difficult) {
        this.essayQuestion = essayQuestion;
        this.answer = answer;
        this.score = score;
        this.teacherId = teacherId;
        this.difficult = difficult;
    }

    @Override
    public String toString() {
        return "EssayQuestion{" +
                "essayQuestionId=" + essayQuestionId +
                ", essayQuestion='" + essayQuestion + '\'' +
                ", answer='" + answer + '\'' +
                ", score=" + score +
                ", teacherId=" + teacherId +
                ", difficult=" + difficult +
                '}';
    }

    public Integer getEssayQuestionId() {
        return essayQuestionId;
    }

    public void setEssayQuestionId(Integer essayQuestionId) {
        this.essayQuestionId = essayQuestionId;
    }

    public String getEssayQuestion() {
        return essayQuestion;
    }

    public void setEssayQuestion(String essayQuestion) {
        this.essayQuestion = essayQuestion == null ? null : essayQuestion.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getDifficult() {
        return difficult;
    }

    public void setDifficult(Integer difficult) {
        this.difficult = difficult;
    }
}